<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<style>
    .message {
        margin-bottom: 16px;
        float: left;
        width: 100%;
    }

    .message.me {
        float: right;
        text-align: right;
        clear: right;
    }

    .message .avatar {
        width: 40px;
        height: 40px;
        border-radius: 2px;
        -moz-border-radius: 2px;
        -webkit-border-radius: 2px;
        float: left;
        cursor: pointer;
    }

    .message.me .avatar {
        float: right;
    }

    .message .nickname {
        font-weight: 400;
        padding-left: 10px;
        font-size: 12px;
        height: 22px;
        line-height: 24px;
        color: #4f4f4f;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-wrap: normal;
    }

    .message .nickname .time {
        font-size: 15px;
        margin-left: 10px;
    }

    .message.me .nickname {
        padding-right: 10px;
    }

    .message.me .nickname .time {
        margin-right: 10px;
    }

    .message .content {
        overflow: hidden;
    }

    .bubble {
        max-width: 70%;
        min-height: 1em;
        display: inline-block;
        vertical-align: top;
        position: relative;
        text-align: left;
        font-size: 14px;
        border-radius: 3px;
        -moz-border-radius: 3px;
        -webkit-border-radius: 3px;
        margin: 0 10px;
    }

    .bubble.bubble_default {
        background-color: #fff;
    }

    .bubble:before, .bubble:after {
        position: absolute;
        top: 14px;
        border: 6px solid transparent;
        content: " ";
    }

    .bubble.left:before, .bubble.left:after {
        right: 100%;
    }

    .bubble.left:after {
        border-right-color: #FFF;
        border-right-width: 4px;
    }

    .bubble.right:before, .bubble.right:after {
        left: 100%;
    }

    .bubble.right:after {
        border-left-color: #FFF;
    }

    .bubble.bubble_primary {
        background-color: #b2e281;
    }

    .bubble.bubble_primary.left:after {
        border-right-color: #b2e281;
        border-right-width: 4px;
    }

    .bubble.bubble_primary.right:after {
        border-left-color: #b2e281;
        border-left-width: 4px;
    }

    .bubble.bubble_primary.right.arrow_primary:before {
        border-left-color: #b2e281;
        border-left-width: 4px;
    }

    .bubble.bubble_primary.right.arrow_primary:after {
        border-left-color: #fff;
        border-left-width: 4px;
        margin-left: -2px;
    }

    .bubble.no_arrow {
        background-color: transparent;
    }

    .bubble.no_arrow:before, .bubble.no_arrow:after {
        display: none;
    }

    .bubble_cont{
        word-wrap: break-word;
        word-break: break-all;
        min-height: 25px;
    }



    .bubble_cont img {
        vertical-align: middle;
    }

    .bubble_cont .plain {
        padding: 9px 13px;
    }

    .bubble_cont .picture {
        border-radius: 4px;
        -moz-border-radius: 4px;
        -webkit-border-radius: 4px;
        overflow: hidden;
        position: relative;
    }

    .bubble_cont .picture img {
        display: block;
        cursor: pointer;
        max-width: 100%;
    }
</style>

<body>
{if condition="!empty($showArr)"}
{volist name="$showArr" id= "v"}
{if condition="$v['user_id']==$friendId"}
<div class="message" style="text-align: left">
    <img class="avatar" src="__ROOT__/{if condition="!empty($friend['avatar_url'])"}{$friend['avatar_url']}{else /}static/home/css/userInfo/images/default_user_portrait_0.png{/if}">
    <div class="content">
        <div class="nickname"><span class="time"> {$friend['nickname']}&emsp;&emsp;&emsp;{:date('Y-m-d H:i:s',$v['release_time'])}</span></div>
        <div class="bubble bubble_primary left">
            <div class="bubble_cont">
                <div class="plain">
                  {$v['reply_msg_content']}
                </div>
            </div>
        </div>
    </div>
</div>
{else if condition="$v['user_id']==$id"}
<div class="message me">
    <img class="avatar" src="__ROOT__/{if condition="!empty($user['avatar_url'])"}{$user['avatar_url']}{else /}static/home/css/userInfo/images/default_user_portrait_0.png{/if}">
    <div class="content">
        <div class="nickname"><span class="time"> {:date('Y-m-d H:i:s',$v['release_time'])}&emsp;&emsp;&emsp;{$user['nickname']}</span></div>
        <div class="bubble bubble_primary right">
            <div class="bubble_cont">
                <div class="plain">
                    {$v['reply_msg_content']}
                </div>
            </div>
        </div>
    </div>
</div>
{/if}
{/volist}
{/if}
</body>
</html>